<?php

namespace app\index\model;

use think\Model;

class Orders extends Model
{
    public function user()
    {
        return $this->belongsTo('Users', 'uid', 'id');
    }

    public function detail()
    {
        return $this->hasMany('OrderDetail', 'order_id', 'id');
    }
}